Skip to content

fix(github): send API version 2026-03-10 before 2022-11-28 retires - #68

Open
SebConejo wants to merge 1 commit into
SimplePDF:mainfrom
SebConejo:fix/send-api-version-2026-03-10-before-2022-d6ab
Open

SebConejo wants to merge 1 commit into
SimplePDF:mainfrom
SebConejo:fix/send-api-version-2026-03-10-before-2022-d6ab

Conversation

@SebConejo

Copy link
Copy Markdown

Problem

After that date the WordPress release announcement job gets 410 Gone from GitHub when it checks for or creates the wordpress@ release, so releases stop being recorded.

X-GitHub-Api-Version 2022-11-28 stops working (takes effect on 10 Mar 2028, source).

Fix

This sends X-GitHub-Api-Version 2026-03-10 from the one shared githubRequest helper; the code only reads the response status and posts fields that the listed 2026-03-10 breaking changes do not touch.

  • scripts/announce-wordpress-release.mjs:85
  • scripts/announce-wordpress-release.mjs:99
  • scripts/announce-wordpress-release.mjs:110
  • scripts/announce-wordpress-release.mjs:169
  • scripts/announce-wordpress-release.mjs:186

How I checked

The calls now follow Github's announcement.

node --test scripts/announce-wordpress-release.test.mjs passes.

Not checked

The breaking-changes list was only partly readable and I could not call the API, so I checked by reading that the releases endpoints are not named in the visible entries.


Okapi is an API watcher: it prevents API breaking changes by opening pull requests like this one.

After that date the WordPress release announcement job gets 410 Gone
from GitHub when it checks for or creates the wordpress@ release, so
releases stop being recorded. This sends X-GitHub-Api-Version 2026-03-10
from the one shared githubRequest helper; the code only reads the
response status and posts fields that the listed 2026-03-10 breaking
changes do not touch.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant